package model

import "time"

type ConceptBoardIndex struct {
	ID              int       `gorm:"column:ID"`
	Name            string    `gorm:"column:NAME"`
	MyquantCode     string    `gorm:"column:MYQUANT_CODE"`
	AkshareCode     string    `gorm:"column:AKSHARE_CODE"`
	TransactionDate time.Time `gorm:"column:TRANSACTION_DATE"`
	OpenPrice       float64   `gorm:"column:OPEN_PRICE"`
	ClosePrice      float64   `gorm:"column:CLOSE_PRICE"`
	HighestPrice    float64   `gorm:"column:HIGHEST_PRICE"`
	LowestPrice     float64   `gorm:"column:LOWEST_PRICE"`
	LastClosePrice  float64   `gorm:"column:LAST_CLOSE_PRICE"`
	ChangeRange     float64   `gorm:"column:CHANGE_RANGE"`
	ChangeAmount    float64   `gorm:"column:CHANGE_AMOUNT"`
	Turnover        float64   `gorm:"column:TURNOVER"`
	Volume          float64   `gorm:"column:VOLUME"`
	Amplitude       float64   `gorm:"column:AMPLITUDE"`
	TurnoverRate    float64   `gorm:"column:TURNOVER_RATE"`
	Rsv             float64   `gorm:"column:RSV"`
	K               float64   `gorm:"column:K"`
	D               float64   `gorm:"column:D"`
}

type ConceptBoardIndexArray []*ConceptBoardIndex

// 定义表名
func (_conceptBoardIndex ConceptBoardIndex) TableName() string {
	return "CONCEPT_BOARD_INDEX"
}
